<?php if($this->problemWay){
    if($this->problemWay->status == Application_Model_ProblemWay::Problem_ReturnCancel){
?>
<div class="yunshu">
    <div class="lanmu">
            <h2>退货流程</h2>
    </div>
    <?php if($this->billall->interior >= Application_Model_wayBillItem::Interior_Outstorage && $this->billall->interior != Application_Model_wayBillItem::Interior_PickError){ ?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_Default){ ?>
        <div class="lcbox">
            <form method="post" action="/admini/manageproblem/scheduledefault/id/<?php echo $this->billall->id; ?>" id="formdefault">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>待申请</p></td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>退包类型：</dt>
                                <dd>
                                    <ul>
                                        <li><label><input id="ScheduleType" name="ScheduleType" type="radio" value="渠道商退包" checked>渠道商退包</label></li>
                                        <li><label><input id="ScheduleType" name="ScheduleType" type="radio" value="快递公司退包">快递公司退包</label></li>
                                        <li><label><input id="ScheduleType" name="ScheduleType" type="radio" value="外国海关退包">外国海关退包</label></li>
                                        <li><label><input id="ScheduleType" name="ScheduleType" type="radio" value="无人签收退包">无人签收退包</label></li>
                                    </ul>
                                </dd>
                            </dl>
                            <div class="lctijiao">
                                <a href="javascript:$('#formdefault').submit()" class="anvbotton5"><span>确认已申请</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            </form>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule >= Application_Model_ProblemWay::Schedule_ApplyFor){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                        <td class="lcleft">
                        <p class="yixz yixz2"><i></i>已申请</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>退件类型：</dt>
                                <dd><?php echo $this->problemWay->ReasonBySchedule?$this->problemWay->ReasonBySchedule->content:"悠奇仓库退件";?></dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->ReasonBySchedule){ 
            if($this->problemWay->ReasonBySchedule->content != "渠道商退包") {
        ?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_ApplyFor){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>确认退件</p></td>
                    <td>
                        <div class="qudao">
                            <p class="sming">请确认退件申请是否受理成功！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id="scheduleApplyFor"><span>已确认</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule >= Application_Model_ProblemWay::Schedule_ReturnRoute){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                    <td class="lcleft">
                        <p class="yixz yixz2"><i></i>退件途中</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>受理状态：</dt>
                                <dd>已受理，退件途中</dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_ReturnRoute){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>待回渠道商</p></td>
                    <td>
                        <div class="qudao">
                            <p class="sming">请及时跟进退件状态！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id='ScheduleReturnRoute'><span>已回渠道商</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php } }?>
    <?php if($this->problemWay->schedule >= Application_Model_ProblemWay::Schedule_InChannel){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                    <td class="lcleft">
                        <p class="yixz yixz2"><i></i>已在渠道商</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>回渠道确认：</dt>
                                <dd>已退至<?php echo $agentLog?$agentLog->DescriptionByAgent->name:($this->billall->agentcompname?$this->billall->agentcompname->name:"悠奇仓库");?></dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_InChannel){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>待退回悠奇</p></td>
                        <td>
                        <div class="qudao">
                            <p class="sming">请确认退件是否已回悠奇！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id='ScheduleInChannel'><span>确认已退回</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php }?>
    <?php if($this->problemWay->schedule >= Application_Model_ProblemWay::Schedule_InUuch){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                    <td class="lcleft">
                        <p class="yixz yixz2"><i></i>已退回悠奇</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>是否已退回：</dt>
                                <dd>是</dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_InUuch){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>待入仓</p></td>
                    <td>
                        <div class="qudao">
                                <p class="sming">请将退件物品进行入仓处理！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id='ScheduleInUuch'><span>确认已入仓</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_InStore){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                    <td class="lcleft">
                        <p class="yixz yixz2"><i></i>已入仓</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>是否已入仓：</dt>
                                <dd>是</dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
</div>
    <?php  }
    if($this->problemWay->status == Application_Model_ProblemWay::Problem_PartReturn){
?>
<div class="yunshu">
    <div class="lanmu">
            <h2>部分物品退回流程</h2>
    </div>
    <?php if($this->billall->interior >= Application_Model_wayBillItem::Interior_Outstorage && $this->billall->interior != Application_Model_wayBillItem::Interior_PickError){ ?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_Default){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>待申请</p></td>
                    <td>
                        <div class="qudao">
                                <p class="sming">为确保包裹正常运送，请向渠道商申请退回部分物品！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id='PartDefault'><span>确认已申请</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule >= Application_Model_ProblemWay::Schedule_ApplyFor){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                        <td class="lcleft">
                        <p class="yixz yixz2"><i></i>已申请</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>是否已申请：</dt>
                                <dd>是</dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_ApplyFor){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>确认退回</p></td>
                    <td>
                        <div class="qudao">
                            <p class="sming">请确认退件申请是否受理成功！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id='PartApplyFor'><span>已确认</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule >= Application_Model_ProblemWay::Schedule_ReturnRoute){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                    <td class="lcleft">
                        <p class="yixz yixz2"><i></i>退回途中</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>受理状态：</dt>
                                <dd>已受理，退回途中</dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_ReturnRoute){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>待退回悠奇</p></td>
                        <td>
                        <div class="qudao">
                            <p class="sming">请确认物品是否已退回悠奇！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id='PartReturnRoute'><span>确认已退回</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php }?>
    <?php if($this->problemWay->schedule >= Application_Model_ProblemWay::Schedule_InUuch){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                    <td class="lcleft">
                        <p class="yixz yixz2"><i></i>已退回悠奇</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>是否已退回：</dt>
                                <dd>是</dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_InUuch){ ?>
        <div class="lcbox">
            <table class="lcks">
                <tr>
                    <td class="lcleft"><p>待入仓</p></td>
                    <td>
                        <div class="qudao">
                                <p class="sming">请将退回的物品进行入仓处理！</p>
                            <div class="lctijiao">
                                <a href="javascript:void(0)" class="anvbotton5" id='PartInUuch'><span>确认已入仓</span></a>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
    <?php if($this->problemWay->schedule == Application_Model_ProblemWay::Schedule_InStore){ ?>
        <div class="lcbox">
            <table class="lcwc">
                <tr>
                    <td class="lcleft">
                        <p class="yixz yixz2"><i></i>已入仓</p>
                    </td>
                    <td>
                        <div class="qudao">
                            <dl>
                                <dt>是否已入仓：</dt>
                                <dd>是</dd>
                            </dl>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    <?php }?>
</div>
<?php } } ?>